package com.contactsconverter.model;


public class CTNumberModel {
	
	
	
	private String number;
	private String converterNumber;
	private String rollBackNumber;
	private int provider;
	private boolean convertable;
	private boolean cameroonian;
	private int numberType;
	
	public int getProvider() {
		return provider;
	}
	public void setProvider(int provider) {
		this.provider = provider;
	}

	public CTNumberModel() {
		super();

	}
	
	public CTNumberModel(String number) {
		super();
		this.number = number;
	}
	public CTNumberModel(String number, int numberType) {
		super();
		this.numberType = numberType;
		this.number = number;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getConverterNumber() {
		return converterNumber;
	}
	public void setConverterNumber(String converterNumber) {
		this.converterNumber = converterNumber;
	}

	 public boolean isConvertable() {
		return convertable;
	}
	public void setConvertable(boolean convertable) {
		this.convertable = convertable;
	}
	
	public boolean isCameroonian() {
		return cameroonian;
	}
	public void setCameroonian(boolean cameroonian) {
		this.cameroonian = cameroonian;
	}
	public int getNumberType() {
		return numberType;
	}
	public void setNumberType(int numberType) {
		this.numberType = numberType;
	}
	
	public String getRollBackNumber() {
		return rollBackNumber;
	}
	public void setRollBackNumber(String rollBackNumber) {
		this.rollBackNumber = rollBackNumber;
	}
	@Override
	    public boolean equals(Object object)
	    {
	        boolean sameSame = false;
	        if (object != null && object instanceof CTNumberModel)
	        {
	            sameSame = this.number.equals(((CTNumberModel) object).number);
	        }

	        return sameSame;
	    }
	@Override
	public String toString() {
		return "CTNumberModel [number=" + number + ", converterNumber="
				+ converterNumber + ", provider=" + provider + ", convertable="
				+ convertable + ", cameroonian=" + cameroonian
				+ ", numberType=" + numberType + "]";
	}
	

}
